package org.gpslw.service;


import lombok.extern.slf4j.Slf4j;
import org.geotools.jdbc.JDBCDataStore;
import org.gpslw.util.DataStoreUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Slf4j
@Service
public class ShapeFileService {

    @Autowired
    private JDBCDataStore jdbcDataStore;


    public void shpToPostGis(String shpPath) {
        DataStoreUtils.shpToPostGis(shpPath, jdbcDataStore);
    }

    public void shpToPostGisV2(String shpPath) {
        DataStoreUtils.shpToPostGisV2(shpPath, jdbcDataStore);
    }

}
